import request from '@/utils/request'

// 查询收款账户列表
export function listPaymentAccount(query) {
  return request({
    url: '/apartment/payment/account/list',
    method: 'get',
    params: query
  })
}

// 查询收款账户详细
export function getPaymentAccount(accountId) {
  return request({
    url: '/apartment/payment/account?accountId=' + accountId,
    method: 'get'
  })
}

// 新增收款账户
export function addPaymentAccount(data) {
  return request({
    url: '/apartment/payment/account',
    method: 'post',
    data: data
  })
}

// 修改收款账户
export function updatePaymentAccount(data) {
  return request({
    url: '/apartment/payment/account',
    method: 'put',
    data: data
  })
}

// 删除收款账户
export function delPaymentAccount(accountId) {
  return request({
    url: '/apartment/payment/account/' + accountId,
    method: 'delete'
  })
}

// 审核收款账户
export function auditPaymentAccount(data) {
  return request({
    url: '/apartment/payment/account/audit',
    method: 'put',
    data: data
  })
}

// 修改收款账户状态
export function changePaymentAccountStatus(data) {
  return request({
    url: '/apartment/payment/account/changeStatus',
    method: 'put',
    data: data
  })
} 